package com.ryl.yomall.user.client;

import com.ryl.yomall.model.common.result.Result;
import com.ryl.yomall.model.user.UserAddress;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * @Date 19:41
 * @Author ryl
 */
@FeignClient(name = "service-user")
public interface UserFeignClient {
    @PostMapping("/api/user/addWxUser/{nickName}")
    public Result addWxUser(@PathVariable String nickName);
    @GetMapping("/api/user/inner/findUserAddressListByUserId/{userId}")
    public List<UserAddress> findUserAddressListByUserId(@PathVariable("userId")String userId);
}
